import { useState } from 'react'
import './App.css'

function App() {
  const [count, setCount] = useState(0)

  return (
    <div className="App">
      <div>次数:{count}</div>
      <button onClick={()=>{setCount(count + 1)}}>增加次数</button>
    </div>
  )
}

export default App
